x = eval(input("请输入一个列表："))
a =[]
for i in range(0,10):
    y = x[i]
    if y >60:
        a.append(y)
b =sum(a)
print(b)    
